test= input("请输入任意内容：")
dic = {}
for char in test:
    if char in dic:
        dic[char] += 1
    else:
        dic[char] = 1
for char, count in dic.items():
    print("字符 '{}' 出现了 {} 次".format(char, count))
max_char = max(dic, key=dic.get)
print("出现次数最多的字符是 '{}'，出现了 {} 次".format(max_char, dic[max_char]))
